# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if(NOT QT_INTERNAL_GRPC_TEST_MESSAGE_LATENCY_MSEC)
    set(QT_INTERNAL_GRPC_TEST_MESSAGE_LATENCY_MSEC 300)
endif()

# Set the default message latency for the gRPC tests in milliseconds.
add_compile_definitions(QT_GRPC_TEST_MESSAGE_LATENCY=${QT_INTERNAL_GRPC_TEST_MESSAGE_LATENCY_MSEC})

if(QT_FEATURE_native_grpc)
    add_subdirectory(shared)
    add_subdirectory(client)
    add_subdirectory(server)
    if(QT_FEATURE_ssl)
        add_subdirectory(ssl_client)
    endif()
endif()
add_subdirectory(unattached_channel)
